<? if($this->user_id == Session::user()->id): ?>	
	<div style="padding:5px;">
		Post a Status Message:
	</div>
	<form method="POST" action="save_status.php">
	<div style="padding-left:15px;">
		<textarea name="status_message" style="width:765px"></textarea>
	</div>
	<div style="float:right;padding:7px 15px 7px 5px;"><a href="clear_status.php?id=<?= $this->user_id ?>">Clear</a></div>
	<input style="float:right;" type="submit" value="Post" />	
	</form>
	<div style="clear:both;"></div>
<? endif; ?>

<? if(!$this->is_friend && !$this->has_request): ?>
	<div style="float:right;padding:10px;"><a href="add_friend.php?id=<?= $this->user_id ?>">Add as Friend</a></div>
<? endif; ?>
<div style="padding:10px;">
	<b>Current Status:</b> <?= $this->current_status->status_message ?>
		<? if($this->current_status == '') echo "on"; ?>
	<span style="color:#999999"><?= $this->current_status->created_on ?></span>
<div>
<hr />
<? if($this->is_friend): ?>
<? foreach($this->status_messages as $status): ?>
	<div style="padding:10px;">
		<?= $status->status_message ?> on <span style="color:#999999"><?= $status->created_on ?></span>
	</div>
	<hr />
<? endforeach; ?>
<? endif; ?>